#pragma once
#include "../image2d_ptr.h"

namespace Image2D
{

class Allocator
{
public:
    static int alloc2d(void* data[4], size_t linesize[4], int width, int height, ImageFormat format, int typesize);
    static int free2d(void* data[4]);

    static int copy2d(const void** srcData, const size_t* srcLinesize, void** dstData, size_t* dstLinesize,  int width, int height, ImageFormat format, int typesize);
};


}
